import { createStore, applyMiddleware } from 'redux'
import reduxThunk from 'redux-thunk'
import {connect } from 'react-redux'
import reducer from '../reducer'
export let deal = connect(
    state => ({ state }),
    dispatch => ({ dispatch })
)

let store = applyMiddleware(reduxThunk)(createStore)(reducer)

export default store